/*
package cn.itsource.org.service.impl;

import cn.itsource.base.query.BaseQuery;
import cn.itsource.base.service.impl.BaseServiceImpl;
import cn.itsource.org.domain.Shop;
import cn.itsource.org.mapper.EmployeeMapper;
import cn.itsource.org.mapper.ShopMapper;
import cn.itsource.org.service.IShopService;
import cn.itsource.utli.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
@Service
@Transactional(propagation = Propagation.SUPPORTS,readOnly = true)
public class ShopServiceImpl extends BaseServiceImpl<Shop> implements IShopService{

    @Autowired
    private EmployeeMapper employeeMapper;

    @Autowired
    private ShopMapper shopMapper;

    */
/**
     * 店铺入驻
     * @param shop
     *//*

    public void settlement(Shop shop){
        //补全信息
        shop.setRegisterTime(new Date());
        shop.setState(0);
        shop.getAdmin().setState(0);
        //保存用户信息并返回主键
        employeeMapper.save(shop.getAdmin());
        //保存店铺信息
        shopMapper.save(shop);
    }

}
*/
